package com.wgh.demo.ai.exception;

/**
 * 股票导入异常
 * 用于表示股票数据导入过程中发生的异常
 */
public class StockImportException extends RuntimeException {
    private int successCount;
    private int failCount;

    public StockImportException(String message, int successCount, int failCount) {
        super(message);
        this.successCount = successCount;
        this.failCount = failCount;
    }

    public StockImportException(String message, Throwable cause, int successCount, int failCount) {
        super(message, cause);
        this.successCount = successCount;
        this.failCount = failCount;
    }

    public int getSuccessCount() {
        return successCount;
    }

    public int getFailCount() {
        return failCount;
    }
}